package cn.mcch.investigator.viewdelegate.impl;

import cn.mcch.investigator.R;
import cn.mcch.investigator.customview.pulltorefresh.PullToRefreshLayout;
import cn.mcch.investigator.listener.OnCommonClickListener;
import cn.mcch.investigator.viewdelegate.IMyTaskViewDelegate;
import cn.mcch.investigator.viewdelegate.BaseViewDelegate;

/**
 * Created by Administrator on 2016/12/17.
 */
public class MyTaskViewDelegateImpl extends BaseViewDelegate implements IMyTaskViewDelegate {
    @Override
    public void initEventsListener(OnCommonClickListener l) {
        setOnClickListener(l, R.id.sb_find, R.id.sb_find_start, R.id.sb_find_end);

        if (findViewById(R.id.prl_my_task) != null) {
            ((PullToRefreshLayout) findViewById(R.id.prl_my_task)).setOnRefreshListener(l);
        }

    }

}
